projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b848dc8
)
reset runstate_guest handles on soft reset
author
Vitaly Kuznetsov
<vkuznets@redhat.com>
Fri, 29 Jan 2016 16:50:41 +0000
(17:50 +0100)
committer
Jan Beulich
<jbeulich@suse.com>
Fri, 29 Jan 2016 16:50:41 +0000
(17:50 +0100)
runstate_guest handles need to be reset to prevent update_runstate_area()
corrupting guest's memory after we resume the guest.
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
xen/common/domain.c
patch
|
blob
|
history
diff --git
a/xen/common/domain.c
b/xen/common/domain.c
index 2979c1b70d3368c8f6ec8472fb7e0993f7a530a8..603b7188ad78b919fae46152fe500eb0c14b576f 100644
(file)
--- a/
xen/common/domain.c
+++ b/
xen/common/domain.c
@@
-1074,7
+1074,10
@@
int domain_soft_reset(struct domain *d)
grant_table_warn_active_grants(d);
for_each_vcpu ( d, v )
+ {
+ set_xen_guest_handle(runstate_guest(v), NULL);
unmap_vcpu_info(v);
+ }
rc = arch_domain_soft_reset(d);
if ( !rc )